﻿<Window x:Class="DataInterpolator.View.ExportInterpolationWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:p="clr-namespace:DataInterpolator.Properties"
      Width="{Binding Source={x:Static p:Settings.Default}, Path=Export_WindowSize.Width, Mode=TwoWay}"
      Left="{Binding Source={x:Static p:Settings.Default}, Path=Export_WindowSize.Left, Mode=TwoWay}"
      Top="{Binding Source={x:Static p:Settings.Default}, Path=Export_WindowSize.Top, Mode=TwoWay}"
      Title="Export Well Interpolation Preview"
      DataContext="{Binding Export, Source={StaticResource Locator}}"
      VerticalContentAlignment="Center" SizeToContent="Height">
   <DockPanel HorizontalAlignment="Stretch" Height="Auto" Width="Auto">
      <Grid x:Name="LayoutRoot" Margin="5">
         <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
         </Grid.RowDefinitions>
         <GroupBox Header="File Information" VerticalAlignment="Top">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="*" />
                  <ColumnDefinition Width="Auto" />
               </Grid.ColumnDefinitions>
               <Grid.RowDefinitions>
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
               </Grid.RowDefinitions>
               <TextBlock Text="Filename" TextTrimming="CharacterEllipsis"
                     Padding="3" Margin="3" Height="23" Grid.Row="0" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3"
                     Text="{Binding Filename}" Grid.Column="1" Height="23" Grid.Row="0" />
               <Button Content="Browse..." Grid.Column="2" Margin="3" Grid.Row="0"
                     Command="{Binding BrowseCommand, Mode=OneWay}" />
            </Grid>
         </GroupBox>
         <GroupBox Header="Log Information" VerticalAlignment="Top" Grid.Row="1">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="*" />
               </Grid.ColumnDefinitions>
               <Grid.RowDefinitions>
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
                  <RowDefinition Height="Auto" />
               </Grid.RowDefinitions>
               <TextBlock Text="Company" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="22" VerticalAlignment="Top" />
               <TextBox Height="23" TextWrapping="Wrap" VerticalAlignment="Top"
                     Padding="3" Margin="3" Text="{Binding Company}" Grid.Column="1"
                     Grid.ColumnSpan="2" />
               <TextBlock Text="Well Title" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" VerticalAlignment="Top" Grid.Row="1" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3"
                     Text="{Binding WellTitle}" Grid.Column="1" Height="23"
                     VerticalAlignment="Top" Grid.Row="1" />
               <TextBlock Text="Field" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" VerticalAlignment="Top" Grid.Row="2" />
               <TextBox TextWrapping="Wrap" VerticalAlignment="Top" Padding="3" Margin="3"
                     Text="{Binding Field}" Grid.Column="1" Height="23" Grid.Row="2" />
               <TextBlock Text="Location" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" Grid.Row="3" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3"
                     Text="{Binding Location}" Grid.Column="1" Height="23" Grid.Row="3" />
               <TextBlock Text="API" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" Grid.Row="4" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3" Text="{Binding API}"
                     Grid.Column="1" Height="23" Grid.Row="4" />
               <TextBlock Text="Country" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" Grid.Row="5" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3"
                     Text="{Binding Country}" Grid.Column="1" Height="23" Grid.Row="5" />
               <TextBlock Text="County" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" Grid.Row="6" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3" Text="{Binding County}"
                     Grid.Column="1" Height="23" Grid.Row="6" />
               <TextBlock Text="State" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" Grid.Row="7" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3" Text="{Binding State}"
                     Grid.Column="1" Height="23" Grid.Row="7" />
               <TextBlock Text="Service Company" TextTrimming="CharacterEllipsis"
                     Padding="3" Margin="3" Height="23" Grid.Row="8" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3"
                     Text="{Binding ServiceCompany}" Grid.Column="1" Height="23"
                     Grid.Row="8" />
               <TextBlock Text="Log Date" TextTrimming="CharacterEllipsis" Padding="3"
                     Margin="3" Height="23" Grid.Row="9" />
               <TextBox TextWrapping="Wrap" Padding="3" Margin="3"
                     Text="{Binding LogDate, StringFormat=\{0:MM-dd-yyyy\}}"
                     Grid.Column="1" Height="23" Grid.Row="9" />
            </Grid>
         </GroupBox>
         <Button Content="Export Data" Margin="5" Grid.Row="2"
               Command="{Binding ExportCommand, Mode=OneWay}" HorizontalAlignment="Right"
               Padding="10,5" FontSize="14" />
      </Grid>
   </DockPanel>
</Window>
